<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		小明的数学成绩:<input type="text"id="input1">
		<button onclick="check()">判断是否及格</button>
		<button onclick="check()">判断等级</button>
		<script>
			function check()
			{
				var math=input1.value
				if(math>59)
				{
					alert("及格了!")
				}
				eles
				{
					alert("不及格！")
				}
				function check2()
				var math=input1.value
				if(math>89)
				{
					alert("优秀！")
				}
			}
		</script>
	</body>
</html>
